<?php

class Chiphi extends Controller {

    // variable for the base URL as stated in the config file
    public $base;
    // variable stating the location of the style sheet for all pages
    public $css;

        function __construct()
        {
            /*    The controller inherits all the functions of the Controller
             * class first, next it sets the variables created above to thier 
             * locations in the config file and loads the URL helper class.
             * 
             */
            parent::Controller();
            $this->base = $this->config->item('base_url');
            $this->css = $this->config->item('css');
            $this->load->helper('url');
        }



        /*  The following functions are all almost identical to one another. I
         * will go through the order of them.
         *
         * Load the style sheet location into the data array
         *  $data['css'] = $this->css;

         * Load the base URL into the data array
            $data['base'] = $this->base;
         *
         * Load the page title to be passed to the view
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

         *
         * Load the header, then load the page that corresponds with the function
         * name and then load the footer
            $this->load->view('header', $data);
            $this->load->view('home');
            $this->load->view('footer');
         *
         */






	function index()
	{
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';
            
            $this->load->view('header', $data);
            $this->load->view('home');
            $this->load->view('footer');
        }

        function about()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('about');
            $this->load->view('footer');
        }

        function brothers()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('brothers');
            $this->load->view('footer');
        }

        function alumni()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('alumni');
            $this->load->view('footer');
        }

        function rush()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('rush');
            $this->load->view('footer');
        }

        function parents()
        {
            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';

            $this->load->view('header', $data);
            $this->load->view('parents');
            $this->load->view('footer');
        }

        function photos()
        {


            $data['css'] = $this->css;
            $data['base'] = $this->base;
            $data['title'] = 'Chi Phi, Nu Delta: The Florida State Chapter';
            $this->load->view('header', $data);
            $this->load->view('photos');
            $this->load->view('footer');


        }


}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */